import { RequestMenuList } from '../../api/app';


export class MenuElem {
  public name: string;

  public children: MenuElem[];
  constructor(name: string, child: MenuElem[] = null) {
    this.name = name;
    this.children = child;
  }
}



export const GetAsideList = () => {
    return[
        new MenuElem('导航1',
          [new MenuElem('导航1-1'), new MenuElem('导航2')],
        ),
        new MenuElem('导航2'),
    ];
};


export default {
  state: {
    Test: 'AAAAAAAA',
    AsideList: [],
  },
  actions: {
    RequestMenu(store) {
      store.state.AsideList = GetAsideList();
      // store.state.Test = list;
    },
  },
};
